package com.xthink.common.pojo.cards;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_cards")
public class Cards {
    /*
    * 卡片ID
    * */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /*
    * iccId
    * */
    @TableField("iccid")
    private String iccId;

    /*
    * 卡号
    * */
    @TableField("card_number")
    private String cardNumber;

    /*
    * IMEI
    * */
    @TableField("imei")
    private String IMEI;

    /*
    * 运营商
    * */
    @TableField("operator")
    private String operator;

    /*
    * 卡片状态
    * */
    @TableField("cards_status")
    private String cardsStatus;

    /*
    * 实名认证
    * */
    @TableField("real_name")
    private String realName;

    /*
    * 认证时间
    * */
    @TableField("real_time")
    private Date realTime;

    /*
    * 流量用量
    * */
    @TableField("consumption")
    private Double  consumption;

    /*
    * 已购套餐
    * */
    @TableField("package_name")
    private String packageName;

    /*
    * 累充金额
    * */
    @TableField("total_money")
    private Double totalMoney;

    /*
    * 开卡时间
    * */
    @TableField("card_open_time")
    private Date cardOpenTime;

    /*
    * 关联设备
    * */
    @TableField("equipment")
    private String equipment;

    /*
    * 负责人
    * */
    @TableField("name")
    private String name;

    /*
    * 经销商名称
    * */
    @TableField("business_name")
    private String businessName;

    /*
    * 所属经销商
    * */
    @TableField("user_id")
    private Integer userId;

    /*
    * 所属客户
    * */
    @TableField("customer_id")
    private Integer customerId;

    /*
    * 备注
    * */
    @TableField("remarks")
    private String remarks;

    /*
    * 上次停机时间
    * */
    @TableField("shutdown_time")
    private Date shutdownTime;

    /*
    * 所属流量池
    * */
    @TableField("pool_id")
    private Integer poolId;

    /*
    * 分配状态
    * */
    @TableField("assignment_status")
    private Integer assignmentStatus;

    /*
    * 销售额
    * */
    @TableField("sale_price")
    private Double salePrice;

    /*
    * 佣金
    * */
    @TableField("commission")
    private Double commission;

    /*
     * 创建时间
     * */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /*
     * 更新时间
     * */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
